package com.solvePlat.remote;

import com.solvePlat.remote.service.TestService;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
@RequestMapping("/test")
public class TestController {
    @Resource
    private TestService testService;
    @RequestMapping(value = "/hello", method = RequestMethod.GET)
    @ResponseBody
    public String helloConsumer() {
        return testService.hello();
    }
}
